package com.rxh.mapper.merchant;

import com.rxh.mapper.base.BaseMapper;
import com.rxh.pojo.merchant.MerchantPay;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MerchantPayMapper extends BaseMapper<MerchantPay, Integer> {

    List<MerchantPay> selectAll();

    MerchantPay selectByRefIdAndRefType(@Param("refId") Integer refId, @Param("refType") Short refType);

    MerchantPay selectByRefIdAndRefTypeForMerchantWeb(@Param("refId") Integer refId, @Param("refType") Short refType);

    int deleteByRefIdAndRefType(@Param("refId") Integer refId, @Param("refType") Short refType);
}